package com.woniu.adopt_web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan(value = "com.woniu.adopt_web.mapper")
@EnableTransactionManagement  //配置声明式事务
@EnableCaching
public class AdoptWebApplication {

    public static void main(String[] args) {
        try{
            SpringApplication.run(AdoptWebApplication.class, args);
        }catch (RuntimeException e){
            e.printStackTrace();
        }
    }

}
